package com.ls.pattern.decorator.demo;

import java.util.List;


public class PriceCalculateImpl implements PriceCalculate {
    @Override
    public Long calculatePrice(List<Product> products) {
        return products.stream().mapToLong(Product::getPrice).sum();
    }
}
